import Login from "../pages/Login";
import List from "../pages/admin/product/List";
import pagesNotfound from "../pages/pagesNotfound"
import Add from "../pages/admin/product/Add";
import Index from "../pages/admin/dashborad/index"

import Newreturns from "../pages/admin/return/Newreturns";
import Return from "../pages/admin/return/Return";


import catalog from "../pages/admin/product/classification"
export const mainRoutes = [{
    path: '/Login',
    component: Login
},
{
    path: '/404',
    component: pagesNotfound
}
];

export const adminRoutes = [
    {
        path: '/admin/dashborad',
        component: Index,
        isshow: 'true',
        title: '看板'

    },
    {
        path: '/admin/product',
        component: List,
        exact: true,
        isshow: 'true',
        title: "商品列表"
    },


    {
        path:'/admin/product/Add/:id?',
        component: Add,
        isshow: 'true',
        title: "添加"

    },
    {
        path: '/admin/return',
        component: Return,
        exact: true,
        isshow: 'true',
        title: "退货"
    },
    {
        path: '/admin/return/Newreturns',
        component: Newreturns,
        exact: true,
        isshow: 'true',
        title: "新增退货"
    },

    {
        path: '/admin/product/classification',
        component: catalog,
        exact: true,
        isshow: 'true',
        title: "分类目录"
    },

    {
        path: '/admin/product/Add/:id',
        component: Add,
        isshow: 'false',
        title: "添加"

    },

]